﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Drifter.Core;
using Drifter.Datasource;

namespace DrifterTest
{
    [TestClass]
    public class DataSinkTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
        }


        [TestMethod]
        public void TestMethod2()
        {

            List<FieldList> fieldList = FieldListCollectionBuilder.GetFieldListCollection();

            IDataSource source = new MockDataSource() { FieldListCollection = fieldList };
            IDataSink sink = new MockDataSink();

            foreach (var list in source)
            {
                sink.Take(list);
            }

            //Assert.AreEqual(9, 8);



        }
    }
}
